<template>
	<div class='company-intro-contaienr' v-if="companytyInfo">
		<img class='logo' src='../../../static/img/logo.png' />
		<span class='title'>{{companytyInfo.title}}</span>
		<div class='company-img-container'>
			<img class='company-show-img' :src='companytyInfo.imgl' />
			<img class='company-show-img' :src='companytyInfo.imgr' />
		</div>
		<span class='company-definition'>{{companytyInfo.test}}</span>
	</div>
</template>

<script>
	import { mapGetters, mapState, mapActions } from 'vuex';

	export default {
		data() {
			return {
//				isShowImageText: false
			}
		},
		computed: {
			...mapState(['companytyInfo'])
		},
		mounted() {},
		created() {
			this.loadCompanyInfo();
		},
		methods: {
			...mapActions(['loadCompanyInfo']),
//			showRichspan() {
//				this.isShowImageText = !this.isShowImageText;
//			}
		},

	}
</script>

<style scoped lang="scss">
	.company-intro-contaienr {
		padding: 112px 50px 92px;
		box-sizing: border-box;
		margin-left: -40px;
		width: calc(100% + 80px);
		background-color: #f8f8f8;
		.logo {
			display: block;
			width: 120px;
			height: 120px;
			margin: 0 auto 26px;
		}
		.title {
			display: block;
			margin-bottom: 106px;
			text-align: center;
			line-height: 34px;
			color: #67666b;
			font-size: 24px;
			letter-spacing: 24px;
		}
		.company-img-container {
			display: flex;
			justify-content: space-between;
			margin: 0 -5px 54px;
			.company-show-img {
				width: 298px;
				height: 188px;
				padding: 0 5px;
			}
		}
		.company-definition {
			font-size: 24px;
			color: #67666b;
			line-height: 40px;
			letter-spacing: 4px;
		}
	}
</style>